PDF4Java Reference Documentation
com.o2sol.pdf4java Package / PDFFixedDocument Class / getCosObjectByNumber Method
The Object number of the specified COS Object.
If true then the stream content is also loaded when the Object number specifies a stream Object. Otherwise, only the dictionary part of the stream is loaded.
In This Topic
    getCosObjectByNumber Method
    In This Topic
    Gets the specified COS Object.
    Syntax
    public PDFCosObject getCosObjectByNumber( 
       int objectNumber,
       boolean loadStreamContent
    )

    Parameters

    objectNumber
    The Object number of the specified COS Object.
    loadStreamContent
    If true then the stream content is also loaded when the Object number specifies a stream Object. Otherwise, only the dictionary part of the stream is loaded.

    Return Value

    The COS Object if exists, null otherwise.
    See Also